projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
383fa87
)
PlacesSidebar: Unref cloud_manager in dispose()
author
Daniel Boles
<dboles@src.gnome.org>
Tue, 12 Sep 2017 21:15:27 +0000
(22:15 +0100)
committer
Daniel Boles
<dboles@src.gnome.org>
Mon, 18 Sep 2017 22:30:57 +0000
(23:30 +0100)
We ref the CloudProviders singleton in init() but did not unref it in
dispose(). Do so, using g_clear_object().
https://bugzilla.gnome.org/show_bug.cgi?id=787600
gtk/gtkplacessidebar.c
patch
|
blob
|
history
diff --git
a/gtk/gtkplacessidebar.c
b/gtk/gtkplacessidebar.c
index ff11d65b5a0fc3e629c03383e33f6251b39f7cc5..9b6a2c72cead6352e53ad3582c5acfa61a3eda34 100644
(file)
--- a/
gtk/gtkplacessidebar.c
+++ b/
gtk/gtkplacessidebar.c
@@
-4271,6
+4271,10
@@
gtk_places_sidebar_dispose (GObject *object)
g_slist_free_full (sidebar->shortcuts, g_object_unref);
sidebar->shortcuts = NULL;
+#ifdef HAVE_CLOUDPROVIDERS
+ g_clear_object (&sidebar->cloud_manager);
+#endif
+
G_OBJECT_CLASS (gtk_places_sidebar_parent_class)->dispose (object);
}